package com.pm.controller.official;

import com.pm.common.Response;
import com.pm.common.annotation.UserLoginToken;
import com.pm.common.exception.ExpCodeState;
import com.pm.entity.po.official.OfficialMeanDevRank;
import com.pm.entity.vo.official.OfficialCommonVo;
import com.pm.service.official.OfficialMeanDevRankService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @program: pm_info_api
 * @description: 党政一把手离均差排名
 * @author: ht
 * @create: 2020-08-19 17:43
 **/
@Api(tags = "党政一把手离均差排名")
@UserLoginToken
@RestController
@RequestMapping("/OfficialMeanDevRank")
public class OfficialMeanDevRankController {

    @Autowired
    OfficialMeanDevRankService officialMeanDevRankService;

    @ApiOperation("全部列表查询接口")
    @PostMapping("/getList")
    @ResponseBody
    public Response<List<OfficialMeanDevRank>> getList(@RequestBody OfficialCommonVo officialCommonVo) {
        List<OfficialMeanDevRank> result = officialMeanDevRankService.getList(officialCommonVo);
        Response<List<OfficialMeanDevRank>> res = new Response<>(ExpCodeState.query_data_success, result);
        return res;
    }

}
